#ifndef brick_red_h
#define brick_red_h
#include "StaticObject.h"

#define brickRedWIDTH 45
#define brickRedHEIGHT 45

class BrickRedMushroom : public StaticObject
{
public:
	BrickRedMushroom(int id, D3DXVECTOR2 position, int MovingWidth): StaticObject(id, position, MovingWidth)
	{
		_w = brickRedWIDTH;
		_h = brickRedHEIGHT;
		_type = BrickRedType;
		_movingWidth = MovingWidth;
	}
	~BrickRedMushroom(){}
	void Update(int Delta){}
	
	void LoadResources(LPD3DXSPRITE SpriteHandler, Texture *texture)
	{
		_normalSprite = new Sprite(SpriteHandler, texture, brickRedWIDTH, brickRedHEIGHT, 1, 0);
	}
	void RenderFrame(LPDIRECT3DSURFACE9 BackBuffer, ViewPort *viewport)
	{
		_normalSprite -> Render(BackBuffer, (int)_position.x, (int)_position.y, 255, 1, 1, viewport);
	}
private:
	Sprite *_normalSprite;
	AnimatedSprite *_destroyedSprite;
};

#endif